<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:body>
        <ui:composition template="../communityTemplate.xhtml">
            <ui:define name="content">
                <h:form>
                    
                        
                        <p:panel>
                            <h:panelGrid columns="2">
                                <h:outputText value="Username: "/>
                                <p:inputText value="#{registerBean.name}" required="true"/>
                                
                                <h:outputText value="Email: "/>
                                <p:inputText value="#{registerBean.email}" required="true"/>
                                
                                <h:outputText value="Password: "/>
                                <p:password value="#{registerBean.password}" minLength="6" feedback="true"/>
                                
                                <h:commandButton value="Register" action="#{registerBean.registerUser()}"/>
                            </h:panelGrid>
                            
                        </p:panel>

                </h:form>  
            </ui:define>
        </ui:composition>
    </h:body>


</html>

